package org.smileface.designpattern.factory.factoryMethodPattern;

/**
 * @description: main
 * @author: chujian
 * @since: 2022-02-18 21:21
 **/
public class FactoryMethodPatternMain {
    public static void main(String[] args) {
        ICourseFactory courseFactory = new JavaCourseFactory();
        ICourse course = courseFactory.create();
        course.printName();

        courseFactory = new CCourseFactory();
        course = courseFactory.create();
        course.printName();

    }
}
